package com.koocloud.electroplatemanage.controller;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.service.ReportFormService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: electroplatemanage
 * @description: 报表控制层
 * @author: zww
 * @create: 2020-10-28 09:11
 */
@RestController
@RequestMapping("/reportform")
public class ReportFormController {
    static Logger log = Logger.getLogger("reportform");
    @Autowired
    ReportFormService reportFormService;
    /**
     *@Description:完成情况统计项数
     *@Param: [year]
     *@return: com.koocloud.electroplatemanage.common.pojo.ResponseTemplate
     *@Author: zww
     *@date: 2020/10/28
     */
    @RequestMapping(value = "/completionItemNums", method = RequestMethod.POST, name = "完成情况统计项数")
    public ResponseTemplate completionItemNums(String year){
        return reportFormService.completionItemNums(year);
    }
    /**
     *@Description:未完成情况统计项数
     *@Param: [year]
     *@return: com.koocloud.electroplatemanage.common.pojo.ResponseTemplate
     *@Author: zww
     *@date: 2020/10/28
     */
    @RequestMapping(value = "/unCompletionItemNums", method = RequestMethod.POST, name = "未完成情况统计项数")
    public ResponseTemplate unCompletionItemNums(String year){
        return reportFormService.unCompletionItemNums(year);
    }
    /**
     *@Description:人员未完成情况统计项数
     *@Param: [year]
     *@return: com.koocloud.electroplatemanage.common.pojo.ResponseTemplate
     *@Author: zww
     *@date: 2020/10/28
     */
    @RequestMapping(value = "/personUnCompletionItemNums", method = RequestMethod.POST, name = "人员未完成情况统计项数")
    public ResponseTemplate personUnCompletionItemNums(String year){
        return reportFormService.personUnCompletionItemNums(year);
    }
}